﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WxSDK.Model
{
    [WxPetaPoco.TableName("wx_message")]
    [WxPetaPoco.PrimaryKey("Id")]
    public class wx_message
    {
        #region Model
        private int _id;
        private int _memberid;
        private string _openid;
        private int _msgtype;
        private string _msgcont;
        private int _replaytype;
        private string _replaycont;
        private string _msgid;
        private DateTime _addtime;
        private int _islock = 0;
        private int _sortid = 0;
        /// <summary>
        /// 微信消息记录
        /// </summary>
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 公众号用户ID
        /// </summary>
        public int MemberId
        {
            set { _memberid = value; }
            get { return _memberid; }
        }
        /// <summary>
        /// 用户的OPENID
        /// </summary>
        public string OpenId
        {
            set { _openid = value; }
            get { return _openid; }
        }
        /// <summary>
        /// 收到消息类型  1文本  2图片 3语音  4视频 5小视屏 6地理位置 7链接
        /// </summary>
        public int MsgType
        {
            set { _msgtype = value; }
            get { return _msgtype; }
        }
        /// <summary>
        /// 收到的消息内容
        /// </summary>
        public string MsgCont
        {
            set { _msgcont = value; }
            get { return _msgcont; }
        }
        /// <summary>
        /// 回复消息类型
        /// </summary>
        public int ReplayType
        {
            set { _replaytype = value; }
            get { return _replaytype; }
        }
        /// <summary>
        /// 回复消息内容
        /// </summary>
        public string ReplayCont
        {
            set { _replaycont = value; }
            get { return _replaycont; }
        }
        /// <summary>
        /// 微信消息ID
        /// </summary>
        public string MsgId {
            set { _msgid = value; }
            get { return _msgid; }
        }
        /// <summary>
        /// 发生时间
        /// </summary>
        public DateTime AddTime
        {
            set { _addtime = value; }
            get { return _addtime; }
        }
        /// <summary>
        /// 是否锁定
        /// </summary>
        public int IsLock
        {
            set { _islock = value; }
            get { return _islock; }
        }
        public int SortId {
            set { _sortid = value; }
            get { return _sortid; }
        }
        #endregion Model

        
    }
    /// <summary>
        /// 消息类型  1文本  2图片 3语音  4视频 5小视屏 6地理位置 7链接
        /// </summary>
        public enum MsgTypes{ 
            文本=1,
            图片=2,
            语音=3,
            视频=4,
            小视屏=5,
            地理位置=6,
            链接=7
        }
}
